import { carlist } from "../api";

const state = {
    carlist: []
};
const mutations = {
    CARLIST(state, carlist) {
        state.carlist = carlist
        console.log(state.carlist,"ghj")
    },
    
};
const actions = {
    async getCar({ commit }) {
        let result = await carlist()
        if (result.status == 200) {
            commit("CARLIST", result.data);
        }
    },
    
};
const getters = {};

export default {
    state,
    mutations,
    actions,
    getters
}